package com.culture.bootdemo.handler.handler3;

import com.culture.bootdemo.model.enums.DemoEnum;
import com.google.common.collect.Maps;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Author: wen
 * @DateTime: 2023/8/22 19:45
 * @Description:
 **/
@Component
public abstract class AbstractDemoBaseHandler implements BaseHandler {

    public static final Map<Integer, BaseHandler> activityStrategyMap = Maps.newHashMap();


    public AbstractDemoBaseHandler(DemoEnum type) {
        activityStrategyMap.put(type.getCode(), this);
    }

}
